package top.infopub.mgr.bpa.service;

import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.ContractDropDomain;
import top.infopub.mgr.bpa.domain.ContractEntryDomain;
import top.infopub.mgr.bpa.vo.ContractEntryVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.BpaContractListing;
import top.infopub.model.bpa.ContractEntry;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

public interface ContractEntryService extends GenericService<ContractEntry, String> {

    /**
     * 根据条件查询
     * @param contractEntryVo
     * @return
     * @see
     */
    Page<ContractEntryDomain> selectByDomainWhere(Page<ContractEntryDomain> page, ContractEntryVo contractEntryVo);

    List<ContractDropDomain> selectReview(String proCode);

    List<ContractDropDomain> selectExt(String proCode);

    RspVo queryEntryDetail(String id);

    RspVo saveAll(Integer submitType, String bodyStr, ContractEntry contractEntry, List<BpaContractListing> bpaContractListings, AuthorizationVO userDtl);

    ContractEntry selectBySguid(String id);
}
